package rmmk.algorithms.knn.math;

public class SimilarityCalculator {
	public static Double calculateSimilarity(Double[] vector) {
		
		Double average = 0.0;
		Double sum = 0.0;
		
		for (int i = 0; i < vector.length; i++) {
			sum+=vector[i];
		}
		average = sum/vector.length;
		return average;
	}
}
